﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using Common;
namespace EHR18
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
       //     Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            I_IO_Card io = IOFactory.getIO_Instance(GenneralConfig.instance.IO_TYPE);
            io.WriteBit(GenneralConfig.instance.module.DO_RUN, true);
            io.WriteBit(GenneralConfig.instance.module.DO_READ_OK, true);
            io.WriteBit(2, true);  //切换型号完成信号
            Application.Run(new FormMain() { StartPosition=FormStartPosition.CenterScreen,WindowState=FormWindowState.Maximized});
        }

    }
}
